package com.rc.saas.tenant.service.ticket;

import com.github.pagehelper.PageInfo;
import com.rc.saas.tenant.base.BaseSearch;
import com.rc.saas.tenant.base.BaseService;
import com.rc.saas.tenant.common.exception.CustomException;
import com.rc.saas.tenant.common.vo.TResponse;
import com.rc.saas.tenant.mapper.ticket.TenantTicketTypeMapper;
import com.rc.saas.tenant.model.ticket.TenantTicketType;
import com.rc.saas.tenant.model.ticket.TenantTicketTypeExample;
import com.rc.saas.tenant.search.ticket.TicketSearch;
import com.rc.saas.tenant.vo.ticket.GiveTicketDto;
import com.rc.saas.tenant.vo.ticket.TenantTicketTypeDto;
import com.rc.saas.tenant.vo.ticket.TicketVo;

import java.util.List;

/**
 * @author frog
 * @date 2021/2/25
 */
public interface TenantTicketTypeService extends BaseService<Long, TenantTicketType, TenantTicketTypeExample, TenantTicketTypeMapper> {
    PageInfo listPageTicket(TicketSearch sarch);

    TResponse saveGiveAway(GiveTicketDto giveTicketDTO) throws  CustomException;

    void saveOrUpdateTenantTicketType(TenantTicketTypeDto tenantTicketTypeDTO);

    List<TenantTicketType> listTenantTicketType(String tenantCode);

    List<TicketVo> getTenantTickets(TicketSearch sarch);
}
